package com.itqf.pojo;

import java.util.List;
import java.util.Map;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/2 10:59
 * description:人类实体
 */
public class Person {


    private String name;
    private int age;

    private List<String> gfs;

    private Map<String,Object> data;


    private Car car;

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public List<String> getGfs() {
        return gfs;
    }

    public void setGfs(List<String> gfs) {
        this.gfs = gfs;
    }

    public Person() {

        System.out.println("Person.Person");
    }


    public void init(){
        System.out.println("Person.init");
    }


    public void destroy(){
        System.out.println("Person.destroy");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "Person{"+data +
                "name='" + name + '\'' +
                ", age=" + age +
                '}'+gfs + "::"+car;
    }
}
